<template>
  <h1>服务</h1>
  <f-button @click="apiServe">刷新</f-button>
  <pre>{{ result }}</pre>
</template>

<script setup>
import { onBeforeMount, ref } from 'vue';
import { getGenerateCode } from '../../packages/index';

const result = ref('');

const apiServe = () => getGenerateCode({ orgId: '-1', code: 'consultCode' }).then(res => result.value = res);

onBeforeMount(() => {
  apiServe();
});
</script>

<style lang="scss">

</style>
